package com.adream.scalpel.app.client.service;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("UserState.rpc")
public interface UserState extends RemoteService {
    /**
     * Utility class for simplifying access to the instance of async service.
     */
    public static class Util {
        private static UserStateAsync instance;

        public static UserStateAsync getInstance() {
            if (instance == null) {
                instance = GWT.create(UserState.class);
            }
            return instance;
        }
    }

    public String getUserName();
}
